<nb-card *ngIf="!(showFilter==false)">
  <nb-card-header>
    条件筛选
  </nb-card-header>
  <nb-card-body>
    <input nbInput class="margin" type="text" placeholder="用户名" [(ngModel)]="userName">
    <input nbInput class="margin" placeholder="Start Time" [nbDatepicker]="startPicker" [(ngModel)]="startTime">
    <nb-datepicker #startPicker format="yyyy-MM-dd"></nb-datepicker>
    -
    <input nbInput class="margin" placeholder="End Time" [nbDatepicker]="endPicker" [(ngModel)]="endTime">
    <nb-datepicker #endPicker format="yyyy-MM-dd"></nb-datepicker>
    <button nbButton class="margin" status="info" (click)="filter()">搜索</button>
  </nb-card-body>
</nb-card>

<nb-card>
  <nb-card-header>
    用户档案
  </nb-card-header>

  <nb-card-body>
    <button nbButton status="info" size="small" (click)="openAddPrompt()">增加</button>
    <ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)" (editConfirm)="onEditConfirm($event)">
    </ng2-smart-table>
  </nb-card-body>
</nb-card>
